﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ERP.MasterData.Dtos;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace ERP.MasterData
{
    /// <summary>
    /// 车间服务接口
    /// </summary>
    public interface IWorkshopService : IApplicationService
    {
        /// <summary>
        /// 获取车间列表
        /// </summary>
        Task<PagedResultDto<WorkshopDto>> GetListAsync(GetWorkshopInputDto input);

        /// <summary>
        /// 获取车间详情
        /// </summary>
        Task<WorkshopDto> GetAsync(int id);

        /// <summary>
        /// 创建车间
        /// </summary>
        Task<WorkshopDto> CreateAsync(CreateWorkshopDto input);

        /// <summary>
        /// 更新车间
        /// </summary>
        Task<WorkshopDto> UpdateAsync(int id, UpdateWorkshopDto input);

        /// <summary>
        /// 删除车间（支持单删和批删）
        /// </summary>
        Task DeleteAsync(List<int> ids);

        /// <summary>
        /// 生成车间编码
        /// </summary>
        Task<string> GenerateWorkshopCodeAsync();
    }
}
